package com.stylefeng.guns.modular.customer.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.core.datascope.DataScope;
import com.stylefeng.guns.modular.system.model.Contact;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ContactDao {

    List<Map<String,Object>> page(@Param("page") Page<Contact> page, @Param("name") String name, @Param("customerCompanyName") String customerCompanyName);

    List<Contact> selectContacts(@Param("dataScope") DataScope dataScope, @Param("customerId") Integer customerId, @Param("name") String name);

    Contact selectByMobileNum(String mobileNum);

    List<Map<String,Object>> selectByCompanyId(@Param("companyId") Integer companyId);
}
